


package com.UMLife.me.ui;

import javax.microedition.lcdui.Image;
import com.UMLife.me.action.AboutUsAction;
import de.enough.polish.ui.Form;
import de.enough.polish.ui.ImageItem;
import de.enough.polish.ui.Item;
import de.enough.polish.ui.StringItem;





public class AboutUsUI
		extends Form
{
	public AboutUsUI()
	{
		//#style AboutUsUI
		super(null);
		this.text = "“优蜜”的谐音YouAndMe。优蜜团队成立于2008年，旗下拥有“优蜜互动娱乐网站”，及“优蜜”系列软件产品，详情请登陆  www.umlife.com或wap.umlife.com\n“优蜜”团队衷心感谢您的支持！";
		try
		{
			Image logoImage = Image.createImage("/logo.png");
			this.logo = new ImageItem(null, logoImage, Item.PLAIN, null);
			
		} catch (Exception e)
		{
			// TODO: handle exception
			e.printStackTrace();
		}
		//#style AboutUstextItem
		StringItem textItem = new StringItem(null, this.text, Item.PLAIN);
		this.append(this.logo);
		this.append(textItem);
		
		AboutUsAction action = new AboutUsAction(this);
		this.setCommandListener(action);
		
	}
	
	/**
	 * 设置'关于我们'的内容
	 * 
	 * @param str
	 */
	public void setText(String str)
	{
		// TODO
		this.text = str;
	}
	
	private ImageItem	logo;
	
	private String		text;
	
}
